import ReactDOM from 'react-dom'

function Hello() {
  return <div>我是Hello组件</div>
}

const Hello2 = () => <div>我是函数组件2</div>
// const Hello2 = () => {
//   return <div>我是函数组件2</div>
// }


const element = <div>
  <h1>函数组件</h1>
  <Hello></Hello>
  <Hello2></Hello2>
</div>

ReactDOM.render(element, document.getElementById('root'))